package org.mongodb.morphia.utils;

public enum IndexDirection {
    
    ASC(Integer.valueOf(1)),
    DESC(Integer.valueOf(-1)),
    GEO2D("2d"),
    GEO2DSPHERE("2dsphere");

    private final Object direction;

    private IndexDirection(Object o) {
        this.direction = o;
    }

    public Object toIndexValue() {
        return this.direction;
    }
}